import QtQuick 2.1
import QtQuick.Controls 1.0
import QtQuick.Window 2.0
import QtQuick.Dialogs 1.0
import QtQuick.Controls.Styles 1.0



Rectangle {

    color: "black"

    property int editIndex

    Loader {
        id: pageLoader
        asynchronous: true
        visible: pageLoader.status == Loader.Ready

        anchors.fill: parent
        anchors.leftMargin: 6

        onLoaded: {
            pageLoader.item.editIndex = editIndex;
        }
    }

    states: [
        State {
            name: ""
        },

        State {
            name: "Features"
            PropertyChanges {
                target: pageLoader
                source: "FeaturePageComponent.qml"
            }
        },

        State {
            name: "Specials"
            PropertyChanges {
                target: pageLoader
                source: "SpecialPageComponent.qml"
            }
        },

        State {
            name: "Skills"
            PropertyChanges {
                target: pageLoader
                source: "SkillPageComponent.qml"
            }
        },

        State {
            name: "Character"
            PropertyChanges {
                target: pageLoader
                source: "CharacterPageComponent.qml"
            }
        }

    ]

}
